package com.yunfeng.master.common.constant;

/**
 * @Description TODO
 * @Author Jia boyan
 * Date 2025/6/13 16:13 下午
 */
public class HttpConstant {

    public static final String TIMESTAMP_HEADER_KEY = "_t";
    public static final String SIGN_HEADER_KEY = "_s";
    public static final String AUTHORITIES_HEADER_KEY = "authorities";
    public static final String AUTHORIZATION_HEADER_KEY = "Authorization";
    public static final String BEARER = "Bearer ";

    public static final String CACHED_REQUEST_BODY_OBJECT_KEY = "cachedRequestBodyObject";


    public static final String CONTENT_TYPE_HEADER_KEY = "Content-Type";
    public static final String CONTENT_TYPE_JSON = "application/json";
    public static final String CONTENT_TYPE_JSON_WITH_UTF8 = "application/json;charset=UTF-8";
    public static final String CONTENT_TYPE_FORM = "application/x-www-form-urlencoded";
    public static final String CONTENT_TYPE_FORM_DATA = "multipart/form-data";


    public static final String NAMESPACE = "namespace";
    public static final String SERVER_ADDR = "serverAddr";


    public static final String EXCHANGE_ATTR_TRACE_ID = "TRACE_ID";
    public static final String EXCHANGE_ATTR_TRACE_ID_BEGIN_TIME = "TRACE_ID_BEGIN_TIME";

    public static final String TRACE_ID = "traceId";
    public static final String TENANT_ID = "tenantId";
    public static final String HTTP_METHOD = "httpMethod";
    public static final String CONTENT_TYPE = "contentType";
    public static final String AUTHORIZATION = "authorization";
    public static final String REQUEST_PATH = "requestPath";
    public static final String EMPTY_STRING = "";
}
